package comment

import "git.oschina.net/fuxiaohei/fuxiaohei-go.git/Core"

func userGetById(authorId string) map[string]string {
	sql := Core.Sql("fuxiaohei_users", "real_name,email,url").Where("id = ?").Select()
	return Core.Db.One(sql, authorId)
}

func articleGetById(id string) map[string]string {
	sql := Core.Sql("fuxiaohei_articles", "id,title,slug").Where("id = ?").Select()
	return Core.Db.One(sql, id)
}

